import request from '@/utils/request'
/*****************  <%= options.function_name %>  *******************/
// 列表
export function <%= options.business_name %>List(params) {
  return request({
    url: "/<%= options.business_name %>",
    headers: {
      isToken: false,
    },
    method: "get",
    params,
  });
}
// 新增
export function <%= options.business_name %>Add(params) {
  return request({
    url: "/<%= options.business_name %>",
    headers: {
      isToken: false,
    },
    method: "post",
    data: params,
  });
}
// 修改
export function <%= options.business_name %>Edit(id, params) {
  return request({
    url: `/<%= options.business_name %>/${id}`,
    headers: {
      isToken: false,
    },
    method: "patch",
    data: params,
  });
}
// 删除
export function <%= options.business_name %>Del(ids) {
  return request({
    url: `/<%= options.business_name %>/delete`,
    headers: {
      isToken: false,
    },
    method: "post",
    data: ids,
  });
}
// 详情
export function <%= options.business_name %>Info(id) {
  return request({
    url: `/<%= options.business_name %>/${id}`,
    headers: {
      isToken: false,
    },
    method: "get",
  });
}

// 导出
export function <%= options.business_name %>Export() {
  return request({
    url: `/<%= options.business_name %>/excel`,
    headers: {
      isToken: false,
    },
    method: "post",
    responseType: "blob",
  });
}
